home *** CD-ROM | disk | FTP | other *** search
- include("oops/r3radiob.js");
- include("oops/r3window.js");
- include("oops/r3packer.js");
-
- // --- Create a window --
-
- window = new r3Window(R3WGA_Parent, _r3gui,
- R3WA_ReportCloseWindow, TRUE,
- R3WA_ReportNewSize, TRUE,
- R3WA_Title, "Radio button Example");
- window.SetLeft(300);
- window.SetTop(200);
-
- // -- create a geometry manager (packer) as usual
-
- packer = new r3Packer(R3PA_Orientation, R3PAOF_VERTICAL);
- window.SetGmanager(packer);
-
- // --- create a radiobutton ---
-
- function myRadiobuttonHook(obj, event, value)
- {
- print("Selected " + value);
- }
-
- radiob = new r3Radiobutton(R3WGA_Parent, window,
- R3GRBA_Labels, ["Strength", "Brightness", "Age", "Weight"],
- R3RA_Hook, myRadiobuttonHook);
- radiob.SetToolTip("This is a tool tip");
-
- packer.ADD(R3PAPF_EXPAND | R3PAPF_FILLX, R3PAAF_ALIGN, radiob);
-
- window.FIT(R3WFP_BESTFIT);
- window.REALIZE();
-